#include "led.h"
#include "serialdriver.h"

//------------------------------------------------------------------------------
// Funktionsdeklarationen
//------------------------------------------------------------------------------

void busywait();

//------------------------------------------------------------------------------
// Funktionsdefinitionen
//------------------------------------------------------------------------------

void start()
{
  init_yellow_led();
  init_red_led();
  init_green_led();
  //Bootsequenz
  switch_yellow_led_on();
  switch_red_led_on();
  switch_green_led_on();
  busywait();
  
  
  write("Willkommen bei Melvin Calvin 0.9786.\n Wenn Sie es Nernst meinen, fahren Sie fort:\n");
    
   while(1){
     write("A");
   }
}
//------------------------------------------------------------------------------
void busywait()
{
  unsigned int i;
  for(i = 0; i < 10000000; i++) {
  }
}
//------------------------------------------------------------------------------

